﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using FwProject.Comm.ExcelUtil;
using FwProject.ShoppingMall.Shop;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace FwProject.Shop.Dto
{
    /// <summary>
    /// 商品列表
    /// </summary>
    [DisplayName(displayName:"商品表")]
    [AutoMapFrom(typeof(ShopProduct))]
    public class ShopProductOutputDto:EntityDto<Guid>
    {
        /// <summary>
        /// 商品宣传图片
        /// </summary>
        public string ImagePic { get; set; }

        /// <summary>
        /// 商品编号
        /// </summary>
        [DisplayName(displayName: "商品编号")]
        [ExcelDateMember]
        public string ProductNumber { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [DisplayName(displayName: "商品名称")]
        [ExcelDateMember]
        public string ProductName { get; set; }


        /// <summary>
        /// 分类
        /// </summary>
        [DisplayName(displayName: "商品分类")]
        [ExcelDateMember]
        public string Category { get; set; }

        /// <summary>
        /// 销售价
        /// </summary>
        [DisplayName(displayName: "销售价")]
        [ExcelDateMember]
        public decimal SpcemarketPrice { get; set; }

        /// <summary>
        /// 是否上架
        /// </summary>
        [DisplayName(displayName: "是否上架")]
        [ExcelDateMember]
        public string IsGrounding { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        [DisplayName(displayName: "品牌")]
        [ExcelDateMember]
        public string Brands { get; set; }

        /// <summary>
        /// 分类ID
        /// </summary>
        public Guid TypeId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName(displayName: "创建时间")]
        [ExcelDateMember]
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 销售模式
        /// </summary>
        [DisplayName(displayName: "销售模式")]
        [ExcelDateMember]
        public ShopProductFlag ShopProductFlag { get; set; }
    }


}
